import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";

const routes:Array<RouteRecordRaw>=[
    {
        path:"/",
        name:"HelloWorld",
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:"/AddInvest",
        name:"AddInvest",
        component:()=>import('../view/InvestInfo/AddInvest.vue')
    },
    {
        path:"/ShowInvest",
        name:"ShowInvest",
        component:()=>import('../view/InvestInfo/ShowInvest.vue')
    },
]

//创建路由实例
const router=createRouter({
    history:createWebHistory(),
    routes
})

//导出路由
export default router